<?php

namespace app\controllers;
use app\components\Check;

class JljcController extends \yii\web\Controller
{
    public $layout='front';
    public function actionIndex()
    {
        if(Check::check()){
            $id=\Yii::$app->session->get('stu')['stuid'];
            return $this->render('index',[
                'id'=>$id,
            ]);
        }else{
            return $this->redirect(\Yii::getAlias('@web').'/front/login');
        
        }
    }
    
    public function actionHdkq()
    {
        if(Check::check()){
            $id=\Yii::$app->session->get('stu')['stuid'];
            return $this->render('hdkq',[
                'id'=>$id,
            ]);
        }else{
            return $this->redirect(\Yii::getAlias('@web').'/front/login');
        
        }
    }
    
    public function actionXddw()
    {
        if(Check::check()){
            $id=\Yii::$app->session->get('stu')['stuid'];
            return $this->render('xddw',[
                'id'=>$id,
            ]);
        }else{
            return $this->redirect(\Yii::getAlias('@web').'/front/login');
        
        }
    }
    
    public function actionWsjc()
    {
        if(Check::check()){
            $id=\Yii::$app->session->get('stu')['stuid'];
            return $this->render('wsjc',[
                'id'=>$id,
            ]);
        }else{
            return $this->redirect(\Yii::getAlias('@web').'/front/login');
        
        }
    }
    
    public function actionWjyj()
    {
        if(Check::check()){
            $id=\Yii::$app->session->get('stu')['stuid'];
            return $this->render('wjyj',[
                'id'=>$id,
            ]);
        }else{
            return $this->redirect(\Yii::getAlias('@web').'/front/login');
        
        }
    }
    
    public function actionWjcf()
    {
        if(Check::check()){
            $id=\Yii::$app->session->get('stu')['stuid'];
            return $this->render('wjcf',[
                'id'=>$id,
            ]);
        }else{
            return $this->redirect(\Yii::getAlias('@web').'/front/login');
        
        }
    }
    

}
